package cc.autoapi.pucong.auto.flow.core.flow.execNode.selfenum;

public enum ParamPositionEnum {

    PATH(0),
    QUERY(1),
    BODY(2),
    HEADER(3);

    private Integer type;

    ParamPositionEnum(Integer type) {
        this.type = type;
    }

    public static ParamPositionEnum getItemByValue(Integer value) {
        ParamPositionEnum[] itemArr = ParamPositionEnum.values();
        if (value != null) {
            for (ParamPositionEnum item : itemArr) {
                if (value.equals(item.type)) {
                    return item;
                }
            }
        }
        return null;
    }
}